package cloud.zhixinglu.www.spring.boot.mybatis.plus.service;

import cloud.zhixinglu.www.spring.boot.mybatis.plus.entity.TestEntity;
import cloud.zhixinglu.www.spring.boot.mybatis.plus.pojo.vo.TestVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author WeiXin
 * @since 2023-08-14 16:06:18
 */
public interface TestService extends IService<TestEntity> {

    /**
     * 获取 测试数据详情
     * @param operationId String
     * @return TestEntity
     */
    TestEntity getTestByOperationId(String operationId);

    /**
     * 获取
     * @param operationId {@link String} 操作ID
     * @return List<TestVO>
     */
    List<TestEntity> getTestListByOperationId(String operationId);

    /**
     * 获取所有列表
     * @return List<TestVO>
     */
    List<TestEntity> getTestAllList();

    /**
     * 分页查询数据
     * @param page {@link Page<TestEntity>}
     * @return List<TestVO>
     */
    Page<TestEntity> pageTestListDesc(Page<TestEntity> page);

}
